package com.liveneo.adapter.mobile.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.liveneo.adapter.base.entity.PrpmCampOnQueueTask;
import com.liveneo.adapter.base.mapper.PrpmCampOnQueueTaskMapper;
import com.liveneo.adapter.mobile.service.CampOnQueueTaskService;

@Service
public class CampOnQueueTaskServiceImpl implements CampOnQueueTaskService {
    @Autowired
    private PrpmCampOnQueueTaskMapper prpmCampOnQueueTaskMapper;

    @Override
    public List<PrpmCampOnQueueTask> selectByResultFlag(String resultFlag) throws Exception {
        // TODO Auto-generated method stub
        return prpmCampOnQueueTaskMapper.selectByResultFlag(resultFlag);
    }

    @Override
    public PrpmCampOnQueueTask selectByCallFlowNo(String callFlowNo) throws Exception {
        // TODO Auto-generated method stub
        return prpmCampOnQueueTaskMapper.selectByCallFlowNo(callFlowNo);
    }

    @Override
    public int updateByID(PrpmCampOnQueueTask prpmCampOnQueueTask) throws Exception {
        // TODO Auto-generated method stub
        return prpmCampOnQueueTaskMapper.updateByPrimaryKey(prpmCampOnQueueTask);
    }

    @Override
    public int insert(PrpmCampOnQueueTask prpmCampOnQueueTask) throws Exception {
        // TODO Auto-generated method stub
        return prpmCampOnQueueTaskMapper.insert(prpmCampOnQueueTask);
    }

    @Override
    public int deleteByCallFlowNo(String callFlowNo) throws Exception {
        // TODO Auto-generated method stub
        return prpmCampOnQueueTaskMapper.deleteByCallFlowNo(callFlowNo);
    }
}
